import { APP_INFO } from "types";
import * as pkg from "../package.json";

const baseUrl = window.ServerHost;
export const API_HOST = "/api"; // baseUrl;

export const getAppPkgInfos = (): APP_INFO => {
  // const lastBuildTime = moment().format("YYYY-MM-DD HH:mm:ss"),
  const { name, version, buildDateTime } = pkg;
  const appInfo = {
    pkg: { name, version, buildDateTime },
    app: {
      title: "演示项目",
      memo: "复杂事情简单化；简单事情标准化；标准事情流程化；流程事情自动化",
    },
    client: {
      client_id: "demo-web",
      client_secret: "123",
    },
    developer: "软件研发部",
  };
  return appInfo;
};

export const MODULE_APP = "/app";
export const MODULE_SYS = "/sys";
export const MODULE_INIT = "/init";

export const MENU_KEYS = [MODULE_APP, MODULE_INIT];
